package 异常处理机制;

public class 第一个实例 {

    public static void main(String[] args) {
        int a = 10;
        int b = 0;
        try {
            int c = a / b;
            System.out.println("c = " + c);}
        catch (ArithmeticException e) {
            System.out.println("除数不能为0！");
        }

    }
}
